Influence of oxygen diffusion profiles on the surface barrier of superconducting niobium