Thermodynamical aspects of relativistic hydrodynamics in f(R,G) gravity