Band bending and interface states for metals on GaAs