Synthesis and pharmacological study of new piracetam derivatives and their thio analogs