An equation for trace element distribution during magmatic crystallization