Effective ionic radii in oxides and fluorides