Design, synthesis and preliminary pharmacological evaluation of new piperidine and piperazine derivatives as cognition-enhancers.