Gravar-mail: Hierarchical hidden Markov model with application to joint analysis of ChIP-chip and ChIP-seq data