The formation of late magmatic oxide ores