Robust and efficient photocatalytic hydrogen generation of ReS2/CdS and mechanistic study by on-line mass spectrometry and in situ infrared spectroscopy