Improvements to ATR-FTIR based chemical sensors for the detection of organic contaminants dissolved in water