The electronic partition functions of atoms and ions between 1500°K and 7000°K