Alexander-Spanier cohomology