Event-based Optical Flow Using Spatio-temporal Registration