Pakistani jailed for spying in UAE