Tuning of band gap in TiO2 and ZnO nanoparticles by selective doping for photocatalytic applications