A high-quality sine-wave oscillator for analog built-in self-testing