Spurs beat Heat 104-87 in Game 5 to win NBA title