why does britain own gibraltar