The origins of scientific sociology