Application of the many‐body Green's function formalism to the lithium atom