Applications of rock geochemistry to productive plutons and volcanic sequences