Assessment of depth of general anesthesia