Energy Spectra of Accelerated Solar Protons From Different Sources – I. Reconstruction and Properties of the Source Spectrum