Synthesis, characterization, electrochemical and catalytic performance of NiO nanostructures and Ag-NiO nanocomposite