D-functions and immanants of unitary matrices and submatrices