An FFT method for the computation of thermal diffusivity of porous periodic media