Self-regulating neural mechanisms for self-motion estimation from optic flow