Stresses and displacements produced by a ring foundation