Endogenous Technological Progress and the Cross Section of Stock Returns