A method of measuring the depth of hypnosis