2D materials and their heterostructures for photocatalytic water splitting and conversion of CO2 to value chemicals and fuels