The microstructure and Ruppeiner geometry of charged anti-de Sitter black holes in Gauss–Bonnet gravity: from the critical point to the triple point