Synthesis of the 1,2,4-thiadiazole alkaloids polycarpathiamines A and B