Flatness-Aware Minimization for Domain Generalization