Mavericks advance to reach NBA Finals