Reduced graphene oxide–CdS nanocomposites with enhanced visible-light photoactivity synthesized using ionic-liquid precursors