Diesel Engine, How it works