Tuning the dimensions and structures of nitrogen-doped carbon nanomaterials derived from sacrificial g-C3N4/metal–organic frameworks for enhanced electrocatalytic oxygen reduction