Milford, Bridgeport hospitals to merge