Fabrication of highly stable CdS/g-C3N4 composite for enhanced photocatalytic degradation of RhB and reduction of CO2