Quantum Gaudin model, Wronsky map and equivariant cohomology of flag varieties