Analog-to-digital conversion method and device, in high-density multilevel non-volatile memory devices