Cost-efficient datacentre consolidation for cloud federations