When a solid melts, is thermal energy removed from the solid?