Rational contractive and unitary interpolants in realized form