Effective Fixation of Carbon in g-C3 N4 Enabled by Mg-Induced Selective Reconstruction.