Nuclear magnetic resonance studies of crystal structure