Relative coherency strain and phase transformation history in epitaxial ferroelectric thin films