Discuss the principles behind the operation of internal combustion engines. How do factors like compression ratio, combustion process, and engine geometry influence the performance and efficiency of an engine?