String-inspired Gauss-Bonnet gravity reconstructed from the universe expansion history and yielding the transition from matter dominance to dark energy