General methods of alkaloid synthesis. XI. Total synthesis of the sceletium alkaloid A-4 and an improved synthesis of (+/-)-mesembrine.