China has won the right to host the 2019 basketball World Cup, beating the Philippines in a vote in Tokyo.