Reasoning with Latent Structure Refinement for Document-Level Relation Extraction