SMS: Foundations of oscillator circuit design