The influence of hospitalizations due to exacerbations or spontaneous pneumothoraxes on the quality of life, mental function and symptoms of depression and anxiety in patients with COPD or asthma