The Heterogeneous Productivity Effects of Generative AI