get reads for given references from a bam file