Calculation of physical properties of glass via the phase diagram approach