Diagrammatic description of superconductivity in elements and AnB (n = 1, 2, 3) compounds based on pseudopotential radii