Magnetoelastic effects and magnetic anisotropy in Ni2MnGa polycrystals