The Hidden Width of Deep ResNets: Tight Error Bounds and Phase Diagrams