A total variation approach to sampling and sparse reconstruction from Fourier measurements