KOSS: Kalman-optimal selective state spaces for long-term sequence modeling