High-resolution comparative analysis of great ape genomes