Dealing with uncertainty in ancestral sequence reconstruction: sampling from the posterior distribution