Sources of Spillovers for Imitation and Innovation