The temporal dynamics of surprise