Inferring domain-domain interactions from protein-protein interactions