Optimization of 2G HTS Current Leads Working at External Magnetic Field