Optimization and characterization of pulse electrodeposited nickel selenide nanostructure as a bifunctional electrocatalyst by response surface methodology