Terahertz filters using a new design procedure