Facile synthesis of mesoporous CdS nanospheres and their application in photocatalytic degradation and adsorption of organic dyes