Haloid acid induced carbon nitride semiconductors for enhanced photocatalytic H2 evolution and reduction of CO2 under visible light