Physical properties of CdS thin films grown by different techniques: a comparative study