Structural reconstruction of protein ancestry.