Agent based modelling of an emergency department and path planning optimization of a mobile real time location system