On July 18, 1872, President Juárez died from a heart attack; soon after, many of his supporters ceased the fighting