Fabrication of Metal–Semiconductor Nanowire Heterojunctions