Thiazolidin-4-one formation. Mechanistic and synthetic aspects of the reaction of imines and mercaptoacetic acid under microwave and conventional heating