Achieving high precision in analog in-memory computing systems