Resonance of surface-localized plasmons in a system of periodically arranged gold and silver nanowires on a dielectric substrate