Martensitic transformation in polycrystalline substrate-constrained and freestanding Ni-Mn-Ga films with Ni and Ga excess