Distribution of trace metals during oil shale retorting