Medicinal chemistry of aldose reductase inhibitors