Calculation of stresses in seals of chalcogenide glasses with other materials