Mass composition of cosmic rays with primary energies in the region 1015-1016 eV. New treatment of Tien-Shan and Akeno data