An FFT-Based MAC scheme for Stokes equations with periodic boundary conditions and its application to elasticity problems