Beyond spectral gap (extended): The role of the topology in decentralized learning