Structural evolution of a metal–organic framework and derived hybrids composed of metallic cobalt and copper encapsulated in nitrogen-doped porous carbon cubes with high catalytic performance