Stability of embankments resting on foundation soils with a weak layer