Development of surface impurity segregation during dissolution of aluminum