Joint Elastic Cloud and Virtual Network Framework for Application Performance-cost Optimization