Use of control-engineering principle in chemical analysis