Activation of magnetic shape memory effect in Ni–Mn–Ga alloys by mechanical and magnetic treatment