Cosmic-Ray Electron Flux Measured by the PAMELA Experiment between 1 and 625 GeV