Electron affinity at aluminum nitride surfaces