Finding acceptable models in nonlinear inverse problems using a neighbourhood algorithm