The effect of sampling noise in ensemble-based Kalman filters