Wealth, status, and fitness: a historical study of Norwegians in variable environments