Comparing methods for the analysis of pupillary response