Temperature effect on microstructure and electromagnetic performance of polycarbosilane and sugar-doped MgB2 wires