Trace elements in magmas