A gap theorem for complete noncompact manifolds with nonnegative Ricci curvature