Electrochemically-induced reversible transition from the tunneled to layered polymorphs of manganese dioxide