Lengths of intermediate and deep seismic zones and temperatures in downgoing slabs of lithosphere