Morphology evolution of urchin-like NiCo2O4 nanostructures and their applications as psuedocapacitors and photoelectrochemical cells