Automated examination of relative afferent pupillary defect using pupil detection and tracking