Synthesis of benzo[b]thiophenes by electrophilic cyclization