if 1,000 J of energy is added to a steak engine, and 400 J of work is done by the engine, how much thermal energy ends up being added to the engine