Modulation of Crystal and Electronic Structures in Topological Insulators by Rare-Earth Doping