A smart health grid solution for demand management of Emergency Departments