Synthesis of functional ZnO nanoparticles and their photocatalytic properties