Accurate and Noise-Tolerant Extraction of Routine Logs in Robotic Process Automation (Extended Version)