Document-Level Machine Translation with Hierarchical Attention