Breaking Down the Underlying Logic of Generative Engine Optimization: How RAG Architecture Reshapes AI Search Pathways