Monte Carlo calculation of initial energies of Compton electrons and photoelectrons in water irradiated by photons with energies up to 2 MeV.