Influence of domain on grain size effects of the dielectric properties of BaTiO3 nanoceramics and nanoparticles