Bearing capacity of shallow foundations resting on a soil layer of limited depth