Spectral energy distribution of the metagalactic ionizing radiation field from QSO absorption spectra