Circuit theory and full counting statistics of charge transfer through mesoscopic systems : A random-matrix approach