Fragmentation of positronium with excitation and ionization of the target