Mesoporous MnCo2O4 with a flake-like structure as advanced electrode materials for lithium-ion batteries and supercapacitors.