Martin robs Hanika of victory in Red Bull MotoGP Rookies Cup