Electronic Structure and Chemical Reactions at Metal–Alumina and Metal–Aluminum Nitride Interfaces