Electronic aspects of the martensitic transition in Ni–Mn based Heusler alloys