Spanish authorities will gain the right to veto entry to Gibraltar and block Gibraltarian residency applications as part of the British overseas territory's post-Brexit deal, Spanish media reports suggest.