Incorporation of Er3+ into BaTiO3