Generalized-gradient-approximation description of band splittings in transition-metal oxides and fluorides.