Domain-invariant feature learning in brain MR imaging for content-based image retrieval