Spin gaps in the ordered states of La2LiXO6(X=Ru,Os) and their relation to the distortion of the cubic double perovskite structure in 4d3 and 5d3 magnets