An improved algorithm for cubature Kalman filter based forecasting‐aided state estimation and anomaly detection