First-principles and Monte Carlo study of magnetostructural transition and magnetocaloric properties of Ni2+xMn1−xGa