Electrochemistry and photochemistry of MoS2 layer crystals. I