Different effects of spatial and temporal attention on the integration and segregation of stimuli in time