Reactions in single-molecule junctions