according to the second law of thermodynamics, which is a requirement for the thermal energy to flow from colder objects to hotter objects?