by measuring the pupil of the eye