1D FDTD simulation between free space and dielectric medium with absorbing boundary conditions,calculating the fourier transform of electric field