A three-dimensional nonlinear model for soil consolidation