Photocatalytic H2 evolution and CO2 reduction over phosphorus-doped g-C3N4 nanostructures: Electronic, Optical, and Surface properties