Six-minute walk test found useful in predicting cardiopulmonary complications after thoracic cancer surgery