Nuclear magnetic resonance on lipids and surfactants