Mercury as a proxy for volcanic emissions in the geologic record