What served as a legitimizing tool for the emperor's succession to the throne?