A Boston law firm is merging with one of Portland, Maine’s largest. The tie-up will create a firm with about 60 lawyers in Boston and nearly 150 across its footprint.