Theory and experiments of Bragg cavity modes in passive and active metallic nanoslit array devices