Abundance Analysis of the Extremely Fast ONeMg Novae V838 Hercules and V4160 Sagittarius