Single-crystal to single-crystal mechanical contraction of metal-organic frameworks through stereoselective post-synthetic bromination.