Tuning the electrochemical properties of nanostructured CoMoO4 and NiMoO4 via a facile sulfurization process for overall water splitting and supercapacitors