Exploring the stability of dimers through protein structure topology.