Dynamical decoupling sequence construction as a filter-design problem