Invertible defects and isomorphisms of rational CFTs