Trails: Debug LLM Agents with Automated Trace Analysis