Schottky-barrier formation at nanoscale metal-oxide interfaces