Relativistic top deviation equation and gravitational waves