Measurement of electron-positron spectrum in high-energy cosmic rays in the PAMELA experiment