Resonant behavior and selective switching of stop bands in three-dimensional photonic crystals with inhomogeneous components.