An adaptive system for robust analog signal sample/hold