Detecting axionlike particles with primordial black holes