Synthesis of annulated benzimidazoles via amidine cyclization