Chemical and structural origin of hole states in yttria-stabilized zirconia