Galois modular invariants of WZW models