Spectroscopic investigation of the structure of benzimidazole derivatives and study of their biological activities