Rulers' motivations for promoting education