How thermal energy can transfer from one object to another?