Spatial correlations in reaction-diffusion systems in nonequilibrium conditions