In situ removal of template to synthesize mesoporous NiCo2O4 for high performance battery–type electrode