SelfDefend: LLMs Can Defend Themselves against Jailbreaking in a Practical Manner