Diode-array ultraviolet detector for continuous monitoring of water quality