Invention in the city: Increasing returns to patenting as a scaling function of metropolitan size