Stereochemical control of polymorph transitions in nanoscale reactors.