Determination of rhenium and technetium by infrared spectroscopy