Automated determination of mercury and arsenic in extracts from ancient papers by integration of solid-phase extraction and energy dispersive X-ray fluorescence detection using a lab-on-valve system.