Text this: Modeling and analysis of the nonlinear rotatory motion of an electromagnetic gyrostat