Safeguarding AI: SG-Bench for LLM Safety Generalization