Stochastic simulation of reaction-diffusion systems: A fluctuating-hydrodynamics approach