Use of position sensitive detectors at energies below 1 MeV. Application to a fast determination of the pitch angle distribution of protons inside the magnetosphere