Integration over matrix spaces with unique invariant measures