Superconducting nanowire diode