Filtering properties of structured phononic waveguides