Determination of the electron distribution in the magnetosphere using hydromagnetic whistlers