What are the applications of spectroscopy in water quality monitoring?