Perceptual and cognitive processes in time-to-contact estimation: analysis of prediction-motion and relative judgment tasks