Single-electron tunneling in systems of small junctions coupled to an electromagnetic environment