Use gzip for discarded reads if outfile has ".gz" as extension

This commit tests if outfile is gzipped (when provided at command-line) and in this case compress the file of the discarded reads.