Image Captioning for Effective Use of Language Models in Knowledge-Based Visual Question Answering