Generative Engine Optimization Implementation: Analysis of RAG Engineering Architecture and End-to-End Closed Loop