Doc2Agent: Scalable Generation of Tool-Using Agents from API Documentation