A data-driven Fourier-mixture neural-network method for density estimation