Diffusive fractionation of trace elements by chaotic mixing of magmas