How does intermolecular force of attraction is responsible for a change of state?