Why is spirometry used to diagnose COPD