An internal model of self-motion based on inertial signals