Prediction of heavy metal contents and displacement in soils