On the optimization of the double-layer combustion chamber with and without EGR of a diesel engine