Electronic structure and x-ray spectroscopy of Cu2MnAl1–xGax