John Ternus takes over as Apple CEO on 1 September, ending Tim Cook's tenure and inheriting the company's biggest challenge.