Dynamics of ferroelastic domains in ferroelectric thin films