Polynomial and Rational Matrices: Applications in