Heterogeneous impacts of research grant funding