Dielectric function of metals determined by surface-plasmon excitation: ambiguities caused by ultrathin oxide layers