The chemistry of meteoric metals in the Earth's upper atmosphere