Structural relative stabilities and pressure-induced phase transitions for lanthanide trihydrides REH3 (RE=Sm, Gd, Tb, Dy, Ho, Er, Tm, and Lu)