MoGU: A Framework for Enhancing Safety of Open-Sourced LLMs While Preserving Their Usability