Text this: Bow-tie architectures in biological and artificial neural networks