Beyond spectral gap: the role of the topology in decentralized learning