Passband and defective bands in photonic and quasi-crystals