Coexistence of ionic and metallic bonding in noble-metal oxides