Tokyo stocks extend gains on U.S.-Mexico trade deal