Validation of anesthetic depth by closed-loop control