A glass of water sitting in direct sunlight evaporates over time. Explain this phase change in terms of the types of heat transfer that occur.