Selective and eco-friendly procedures for the synthesis of benzimidazole derivatives. The role of the Er(OTf)3 catalyst in the reaction selectivity