Assimilation of impurities during massive gas injection in ASDEX Upgrade