Nuclear magnetic resonance in intermetallic compounds