Efficient placement of serverless applications across the edge-cloud continuum