A new approach for the synthesis of bioactive heteroaryl thiazolidine-2,4-diones