Tunable electronic structure and topological properties of LnPn (Ln=Ce, Pr, Sm, Gd, Yb; Pn=Sb, Bi)