Beam diagnostics at the BESSY I electron storage ring with Compton backscattered laser photons: measurement of the electron energy and related quantities