An Early Warning System for Debris Flows and Snow Avalanches