Stresses in the lithosphere and sedimentary basin formation