Medical emergency resource allocation model in large-scale emergencies based on artificial intelligence: algorithm development