Monitoring the central nervous system during anesthesia