Synthesis and isomerization of acridine substituted 1,3-thiazolidin-4-ones and 4-oxo-1,3-thiazolidin-5-ylidene acetates. An experimental and computational study