Optimisation of a photochemical sensor for total organic carbon measurement.