Cohomology and Deformation Retracts