Quasilinearization and invariant imbedding, with applications to chemical engineering and adaptive control