Active Prompting with Chain-of-Thought for Large Language Models