On static black holes solutions in Einstein and Einstein-Gauss-Bonnet gravity with topology S n × S n