Negative electron affinity surfaces of aluminum nitride and diamond