General method C for the synthesis of compounds 1, 3, 5–7, 9, 10-16