Two-phase modeling of debris flows