General derivation of the Green's functions for the atomic approach of the Anderson model: application to a single electron transistor (SET)