Deformation of a 3.7-nm long molecular wire at a metallic step edge