Dielectric, ferroelectric and magnetic properties of Bi(Mg,M)O3-modified (M=Hf, Ta) BiFeO3–BaTiO3 ceramics