ir_to_transmittance function

Converts absorbance spectra to transmittance spectra or vice versa