Real-time studies of phase transformations in Cu-In-Se-S thin films. 1. Intermetallic phase transformations