Prediction of the structure, magnetic properties, and martensitic transition of Mg-V-Ga Heusler alloys using first-principles calculations