Hologic, a Marlborough-based medical device manufacturer, is expanding its product catalog through the planned $310-million acquisition of Endomagnetics, a breast cancer surgery technology developer.