Energy dependence and surface contribution of the nucleon-nucleus scattering optical potential at energies up to 1 GeV/nucleon