Learning to encode motion using spatio-temporal synchrony