Real-time study of phase transformations in Cu–In chalcogenide thin films using in situ Raman spectroscopy and XRD