Enterprise applications cloud rightsizing through a joint benchmarking and optimization approach