Langmuir probe in magnetized plasma: Determination of the electron diffusion parameter and of the electron energy distribution function