Structural transitions and multiferroic properties of high Ni-doped BiFeO3