Crystal and volatile controls on the mixing and mingling of magmas