Superconducting properties of the powder-in-tube Cu–Mg–B and Ag–Mg–B wires