Origins and evolutionary diversification of the nuclear receptor superfamily