Electronic States and Schottky Barrier Height at Metal/MgO(100) Interfaces