Bi-functional green-synthesized of Co3O4 NPs for photocatalytic and electrochemical applications