Spin-polarization and ferromagnetism of graphitic carbon nitride materials