Electronic states of lanthanides in the ternary thiogallate CaGa2S4 in view of relativistic first principle calculation