SWAD: Domain Generalization by Seeking Flat Minima