Fermi energy, electrical conductivity, and the energy gap of NaNbO3