Prediction of thermodynamic stability and electronic structure of novel ternary lanthanide hydrides