In semiconductor material, the distance between conduction band and vacuum level defined as electron affinity. In some cases, position of conduction band may vary from vacuum point, or conduction band reduced. As a result, the value of electron affinity increases. What are the main reasons for moving conduction band, not valence band? and why electron affinity varies?