Measurement of electron beam polarization from the energy asymmetry of Compton scattered photons