Exponential inequalities for spatial processes and uniform convergence rates for density estimation