ir_get_intensity function

Extracts intensities from spectra in an ir object for specific spectral channels