Reconstruction of ancestral regulatory signals along a transcription factor tree