Synthesis and characterization of ZnO and silver nanoparticles for antibacterial photocatlytic and solar cell applications