Single-crystalline Ni(OH)2 and NiO nanoplatelet arrays as supercapacitor electrodes