Semi-infinite flags. II: Local and global intersection cohomology of quasimaps spaces \(K\)-orbit closures on \(G/B\) as universal degeneracy loci for flagged vector bundles with symmetric or skew-symmetric bilinear form 