Illegitimacy undermines leader creativity only under stable power