Comparison of properties of CdS thin films grown by two techniques