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