A facile polymer-pyrolysis preparation of submicrometer CoMoO4 as an electrode of lithium ion batteries and supercapacitors