Primary and community health care professionals in hospital emergency departments: effects on process and outcome of care and resources