AgentSpec: Customizable Runtime Enforcement for Safe and Reliable LLM Agents