Pulsar timing as a probe of primordial black holes and minihalos