Facile synthesis of MoO2 nanoparticles as high performance supercapacitor electrodes and photocatalysts