Studies on structural, electrical and optical properties of CuxS thin films for gas sensor application