Template conversion of MoO3 to MoS2 nanoribbons: synthesis and electrochemical properties