KnowledgeSmith: Uncovering Knowledge Updating in LLMs with Model Editing and Unlearning