Regulation of gene expression by site-specific inversion