Rigid body dynamics of diamagnetically levitating graphite resonators