XMusic: Towards a Generalized and Controllable Symbolic Music Generation Framework