spectral_integration function

Integrate spectral irradiance with optional weighting