Learning dynamic treatment strategies for coronary heart diseases by artificial intelligence: real-world data-driven study