Phase transitions and ion exchange behavior of electrolytically prepared manganese dioxide