thermal energy recovery system