Nonlinear dynamics and stability of microstructures in a lattice model for ferroelastic materials