Fourier transformation of non-periodic functions and its application in computed tomography