The X-ray transform on asymptotically euclidean spaces