CIA built thousands of iPhone and Android exploits, leaked documents reveal