Structural optimization of I.C. engines subjected to mechanical and thermal loads