Preparation of CdS-containing silica–titania composites by the sol–gel process