Fabrication of a MgB2 nanowire single-photon detector using Br2–N2 dry etching