Multi-layer global routing considering via and wire capacities