D-dimensional Bardeen–AdS black holes in Einstein–Gauss–Bonnet theory