Global stability for an inverse problem in soil-structure interaction