How gene loss and monogamy built termite mega societies