Optical water quality in rivers