A continuum theory for first-order phase transitions based on the balance of structure order