Interprofessional teamwork in primary care: the effect of functional heterogeneity on performance and the role of leadership