Effect of interfacial dislocations on ferroelectric phase stability and domain morphology in a thin film—a phase-field model