Factors in the distribution of the trace elements during the crystallisation of magmas