With Cook becoming executive chairman, John Ternus will take over the management of the technology giant.