Text this: Sorting out assortativity: When can we assess the contributions of different population groups to epidemic transmission?