Bayesian calibration of a lookup table for {ADC} error correction