Engineering the Lanthanide and Actinide Dopants Effects on the Local Environment of Luminescent Complex Metal Oxide