A dynamic error model for SAR A/D converters