Generalized electronics for compact atomic clocks