Equilibrium and shot noise in mesoscopic systems