Thermodynamics of topological black holes in R2 gravity