Thermodynamic model of natural, medieval and nuclear waste glass durability