Selection of Prompt Engineering Techniques for Code Generation through Predicting Code Complexity