A 12-bit SAR ADC integrated on a multichannel silicon drift detector readout IC