Who lost their power over Tibet?