Polarized absorption and energy levels of LiNbO3:Tm and LiNbO3(MgO):Tm