A Computation- and Network-Aware Energy Optimization Model for Virtual Machines Allocation