Target fragmentation in proton-nucleus and16O-nucleus reactions at 60 and 200 GeV/nucleon