Nonlinear analysis of pupillary dynamics