Russell Westbrook exploded for 40 points as the Oklahoma City Thunder beat the San Antonio Spurs 105-92.