TotalEnergies <a href="https://www.reuters.com/companies/TTEF.PA" target="_blank">(TTEF.PA)</a> posted a surge in second-quarter profits, joining others in its sector that have benefited from higher energy prices, although its shares fell as its stock buyback…