Deep Ritz method with Fourier feature mapping: A deep learning approach for solving variational models of microstructure