Harnessing ZnO nanoparticles for antimicrobial and photocatalytic activities