Trace elements in magnetite as petrogenetic indicators