How is a collapsed lung diagnosed in lung cancer patients?