Meanwhile, he had written to Abu Ya'far, the prefect of the dynamic city of Isfahan, offering his services. What mercenaries were accepted after Isfahan's victory over Hamadan?