Transverse energy production in proton-nucleus and nucleus-nucleus collisions