In situ x-ray scattering study of PbTiO3 chemical-vapor deposition