Metal-semiconductor transition in CuS-Cu1.8S mixed phase thin films