In situ synchrotron X-ray studies of ferroelectric thin films.