Performance analysis in emergency departments: a data-driven approach