Tunable electronic structure and magnetic moment in C2N nanoribbons with different edge functionalization atoms.