Mavericks rout Warriors, who lose all four games on trip