Gradient-based microstructure reconstructions from distributions using fast Fourier transforms