Distance dependence of interactions between charged centres in proteins with common structural features