General method B for the synthesis of compounds 19, 30-33