Cognitive aspects of problem solving using dictionaries in L2 writing