High-performance routers with multi-stage multi-layer switching and single-stage shared buffering