Nonlinear inversion, statistical mechanics, and residual statics estimation | Synapse