thermal energy equation examples