The former head of the CIA shares the advice he gave his successor