Knowledge, culture, and science in the metropolis: the New York Academy of Sciences, 1817–1970