Design, synthesis, and neurochemical evaluation of 2-amino-5-(alkoxycarbonyl)-3,4,5,6-tetrahydropyridines and 2-amino-5-(alkoxycarbonyl)-1,4,5,6-tetrahydropyrimidines as M1 muscarinic receptor agonists.