A Survey of Prompt Engineering Methods in Large Language Models for Different NLP Tasks