Why spikes? Hebbian learning and retrieval of time-resolved excitation patterns