Filtering properties of defect-bearing periodic and triadic cantor multilayers