Content-based medical image retrieval using graph neural networks