Dynamical equation for quark spin polarization in a rotating medium