Precession of magnetars: dynamical evolutions and modulations on polarized electromagnetic waves