Similar Items: Energy-Efficient Federated Learning Scheduler for VM Allocation in Edge-Cloud Continuum