Atomic effects in the determination of nuclear cross sections of astrophysical interest