Investigation of Mg loss during heat treatments in an AlMgSi alloy