Comparison of Potential Energies in Different States of Matter