Potentiostatic electrodeposition of nanostructured NiO thin films for their application as electrocatalyst