Changes in the heterogametic mechanism of sex determination