(5-Arylidene-2,4-dioxothiazolidin-3-yl)acetic acids as aldose reductase inhibitors