Rotation and magnetic field in the Be star omega Orionis