Competition under generalized attraction models: Applications to quality competition under yield uncertainty