Endogenous market structure and competition in the 19th century American brewing industry