Switches in which only the opening movement or only the closing movement of a contact is effected by heating or cooling