Regulating G protein-coupled receptors by topological inversion