Determination of the energy spectra of clinical x-ray beams using dose-depth data sets