Environmental policy and endogenous market structure