Patents, R&D subsidies, and endogenous market structure in a schumpeterian economy. (January 2016)