Mechanical detection of NMR. Advantages of a digital approach