Role of covalent hybridization in the martensitic structure and magnetic properties of shape-memory alloys: The case of Ni50Mn5+xGa35-xCu10