Physics and the evolution of society