R-Judge: Benchmarking Safety Risk Awareness for LLM Agents