Hydrogen Welding and Hydrogen Switches in a Monatomic Gold Nanowire