First-principles study of the high-pressure hexagonal-close-packed phase of mercury