Derivation of electron and photon energy spectra from electron beam central axis depth dose curves.