thermodynamics is primarily concerned with the?​