IN SITU SYNCHROTRON X-RAY STUDIES OF FERROELECTRIC THIN FILMS