An electrochemical route to MoS2 nanosheets for device applications