Pairing and high-spin states in proton rich N = 82 nuclei