Gibson Sotheby’s International Realty is opening a Portsmouth, New Hampshire, office as the Boston firm responds to increased demand north of the state border.