What happens to temperature as a substance melts and heat energy is used to break the connections between molecules, until all melting is complete?.