Normal modes of tetragonal La2NiO4 and La2CuO4, isomorphs of the hight Tc superconductor La2-xSrxCuO4