How intermolecular forces is responsible for the phases of matter?