what is mercury used for