Water abundance prediction of sandstone aquifers based on the distance function