Functional vs. Cross-Functional Teams and the Role of Productive Heterogeneity