A Nonlinear Adaptive Observer with Excitation-based Switching