3D stochastic gravity inversion using nonstationary covariances