Rendering barium titanate semiconductive by doping with rareearth elements