Density of valence states of the superionic conductor AgI