Charge transport and photon-assisted tunneling in the NSN single-electron transistor