Detection of Flow-Regime Transitions Using Dynamic Mode Decomposition and Moving Horizon Estimation