Spontaneous resolution of diastereomeric glycosyl isoxazolines: a combined theoretical and experimental study in solution and in the crystalline form.