A theoretical approach to search inhibition mechanism of corrosion via metal–ligand interaction for some imidazole derivatives