Mirror modes and fast magnetoacoustic waves near the magnetic pileup boundary of comet P/Halley