Gain trimming in instrumentation amplifier-based systems