Tuning the surface metal work function by deposition of ultrathin oxide films: Density functional calculations