Finite-dimensional contractive realizations on polynomially defined domains and determinantal representations of multivariable polynomials