Nanostructured photocatalysts for the photooxidation of ammonia and photoreduction of nitrates from waste waters