Reversible switching in gold-atom–organic-molecule complex induced by reversible bond formation