Explanation of thermal rectification