Rational canonical form of polyphase matrices with applications to designing paraunitary filter banks