Electronic structure of Pr3+ and Tm3+ doped LiYO2