Localizing Task Information for Improved Model Merging and Compression