Charge Sharing and Charge Injection A/D Converters for Analog In-Memory Computing