A variational approach for compact homogeneous Einstein manifolds