Synthesis of compounds 6a–j. Reagents and conditions: (a) sodium, dry MeOH, r.t., overnight; (b) ethyl chloroacetate, EtOH/DMF (4:1.5), reflux, overnight; (c) hydrazine hydrate 64%, EtOH, reflux, 6 h; (d) aromatic aldehyde, EtOH, reflux, 2 h 30 min–48 h; (e) mercaptoacetic acid, toluene, heating 120 °C, 18 h