APIGen: Automated Pipeline for Generating Verifiable and Diverse Function-Calling Datasets