Synthesis of heterocyclic compounds to be tested as potentiators or correctors of mutant CFTR in cystic fibrosis