Minimizing ADC Precision for Analog In-Memory Computing