Structural and magnetic phase transitions in shape-memory alloys Ni 2+x Mn 1-x Ga