Automated Diagnosis of Scalability Losses in Parallel Applications