Bio-based synthesized NiO nanoparticles and evaluation of their cellular toxicity and wastewater treatment effects