Amazon's R&D spend rose 41% to $22.6B in 2017