Dynamic simulation of power system emergencies in the presence of automatic transformer tap-changers