Photoreduction of nitrates from waste and drinking water