q2d: Turning Questions into Dialogs to Teach Models How to Search