Short-term synaptic plasticity as a temporal filter