The roles of cis- and trans-regulation in the evolution of regulatory incompatibilities and sexually dimorphic gene expression