Doping effects of Dy and Mg on BaTiO3 ceramics prepared by hydrothermal method