NiO nanoparticles synthesized by using Tagetes erecta L leaf extract and their activities for photocatalysis, electrochemical sensing, and antibacterial features