The president of Azerbaijan, who is hosting climate summit COP29, has hailed oil and gas as "a gift from God" as he lambasted Western media and climate activists.