Forward and transverse energy distributions in oxygen-induced reactions at 60 A GeV and 200 A GeV