The hydraulic capacity of deteriorating sewer systems