The regioselectivity and synthetic mechanism of 1,2-benzimidazole squaraines: combined experimental and theoretical studies