Near-surface electrical effects of oxidation and hydrogenation in silicon