Determination of headways and vehicle capacities in public transport networks using a dynamic assignment model