Capacity of levees to protect from floods is affected by