Statistical analysis of domains in interacting protein pairs