An improved algorithm for the automatic detection and characterization of slow eye movements