Data detection for data-storage devices of the local probe type