Tectonic and gravitational stress in long symmetric ridges and valleys