Convergent evolution of RFX transcription factors and ciliary genes predated the origin of metazoans