Semi-infinite flags. II: Local and global intersection cohomology of quasimaps spaces Quantum cohomology of smooth complete intersections in weighted projective spaces and in singular toric varieties 