Essays in the economics of education and innovation