Optimized Cloud Resource Allocation Using Genetic Algorithms for Energy Efficiency and QoS Assurance