Electronic structure and crystal chemistry of niobium oxide phases.