Analytic Theory of the Resonance Properties of Metallic Nanoslit Arrays