On the electronic structure of Cu(III) and Ni(III) in La2Li1/2Cu1/2O4, Nd2Li1/2Ni1/2O4, and Cs2KCuF6