which quantity is directly related to the temperature of a substance?