Synthesis of highly graphitic mesoporous carbon using Ni–Fe double-layered hydroxide as both template and catalyst precursor