Text this: Q-learning based handoff algorithm for satellite system with ancillary terrestrial component