AGILE as a particle detector: Magnetospheric measurements of 10–100 MeV electrons in L shells less than 1.2