Former England international Matthew Upson has joined Brighton on a permanent contract following a successful loan spell with the club.