Text this: A cost function to determine the optimum filter and parameters for stabilizing gaze data