AstraZeneca to buy developer of COPD drug