The structures of liquid mercury and liquid aluminum