Thermal analysis of quench propagation in superconducting coils