Are teaching and research complementary or substitute activities? An empirical assessment