Samsung Electronics posts record third quarterly profits, replaces&nbsp;CEOs