NMR detection of hydrocarbons