When writing that two objects are isomorphic, I use X \cong Y.
Sometimes however, it is necessary to specify the type of isomorphism in question. I wish to do this with text above/below the isomorphism symbol, in much the same way that one can use \xrightarrow{} to insert text above an arrow indicating a map from X to Y.
Using X \cong_{text} Y or X \cong^{text} Y doesn't do exactly what I want, because this gives me subscript/superscript, which are offset from the \cong symbol. What I want is text that appears directly above/below the isomorphism symbol, like \xrightarrow.
What can I do to make that happen?

