Reactions of β-keto thioamides with α,β-unsaturated aldehydes. Synthesis of 6-hydroxypiperidine-2-thiones and 6H-thiopyrans