Reconstruction of high-energy bremsstrahlung spectra by numerical analysis of depth-dose data