Use of control-engineering principles in chemical analysis