A general synthesis of abundant metal nanoparticles functionalized mesoporous graphitized carbon