Synthesis of N-substituted 9-azabicyclo[3.3.1]nonan-3alpha-yl carbamate analogs as sigma2 receptor ligands.