Spatially resolved X-ray spectroscopy of cooling clusters of galaxies