Studying the nature of the long-flying component of cosmic rays using X-ray emulsion chambers exposed in the Pamirs and Tien Shan