Homological properties of affine Hecke algebras