Cost pass-through and inverse demand curvature in vertical relationships with upstream and downstream competition