Doctors warn of 'dangerous' emergency departments