Correlation of electronic structure and martensitic transition in epitaxialNi2MnGafilms