Flexure of the lithosphere and continental margin basins