Profits for the energy firm more than tripled after energy prices surged due to the war in Ukraine.