An optimal approach for content-based image retrieval using deep learning on COVID-19 and pneumonia X-ray Images