Theoretical calculations of the electronic structure and optical transitions of UF6 and UF5