Hysteresis and magnetocaloric effect at the magnetostructural phase transition of Ni-Mn-Ga and Ni-Mn-Co-Sn Heusler alloys