Commercializing science: nineteenth- and twentieth-century academic scientists as consultants, patentees, and entrepreneurs