How do comets change when they approach the sun?