Nuclear magnetic resonance study of the Sm2Fe17 carbides