An ultrasonic method for the synthesis, control and optimization of CdS/TiO2 core–shell nanocomposites