Anisotropy of thermal vibrations and polymorphic transformations in lanthanum and uranium