An Early Warning System for Flood Detection Using Critical Slowing Down