Spin states and electronic conduction in Ni oxides