Galactic halo cusp–core: tidal compression in mergers