Energy spectrum and angular distributions of electrons trapped in the geomagnetic field