Structural analysis of nanocapsules by nuclear magnetic resonance.