Spin switching via targeted structural distortion.