Gravar-mail: The evolution of sex determination associated with a chromosomal inversion