Templated synthesis of spinel cobaltite MCo2O4 (M=Ni, Co and Mn) hierarchical nanofibers for high performance supercapacitors