Outlier Robust State Estimation Through Smoothing on a Sliding Window