A novel application of g-C3N4 thin film in photoelectrochemical anticorrosion