Demystifying the Compression of Mixture-of-Experts Through a Unified Framework