A time series approach to optimization of auditory evoked response detection