Synthesis of Sm-doped BaTiO3 ceramics and characterization of a secondary phase