A Survey on Inference Engines for Large Language Models: Perspectives on Optimization and Efficiency