How is it determined if lymph nodes are involved in determining the prognosis of breast cancer based on the TNM staging?