Magnetic properties and martensitic transformation of Ni–Mn–Ge Heusler alloys from first-principles and Monte Carlo studies