Photon sphere and phase transition of d-dimensional (d ≥ 5) charged Gauss–Bonnet AdS black holes