BAMQL: a query language for extracting reads from BAM files