Effect of nonmetals (B, O, P, and S) doped with porous g-C3N4 for improved electron transfer towards photocatalytic CO2 reduction with water into CH4.