US beats Spain 107-100 in men's hoops final