What factors determine the extent of lung cancer surgery?