A core-shell strategy for constructing a single-molecule junction.