Trace element geochemistry of magmatic rock series of converging and diverging plate boundaries