TRENT2D, a quasi-two-phase numerical code to simulate debris flow dynamics