Effect of the occupation of Ba and Ti sites on the structural, optical and dielectric properties of Sm-doped BaTiO3 ceramics