Soil mechanical analysis through gamma ray attenuation