Automatic Prompt Generation via Adaptive Selection of Prompting Techniques