Coarse grained free energies with gradient corrections from Monte Carlo simulations in Fourier space