Mechanistic insight into the photocatalytic hydrogenation of 4-nitroaniline over band-gap-tunable CdS photocatalysts.