The thermodynamic theory of evolution and aging