John Ternus will take charge as Apple CEO on September 1, while Cook remains executive chairman of the board.