Event-Triggered Observers and Observer-Based Controllers for a Class of Nonlinear Systems