Construction of inflationary scenarios with the Gauss–Bonnet term and nonminimal coupling