Phase transition in Ba5RTi3Nb7O30 (R = Dy, Sm) ferroelectric ceramics