The martensitic transition and magnetocaloric properties of Ni51Mn49−xSnx