Evaluation of bi-functional applications of ZnO nanoparticles prepared by green and chemical methods