as_energy function

Convert spectral photon irradiance into spectral energy irradiance