A mathematical model of the optokinetic reflex