Text this: UniSD: Towards a Unified Self-Distillation Framework for Large Language Models