The Generalized War of Attrition