Characterization and the mechanism of formation of the ternary compound MgNi2.5B2 in Ni-doped MgB2 bulk