Phase Transformations and Crystalline Quality of CuInS2 Thin Films