Nominally, sovereignty lay in the emperor but in fact power was wielded by the Fujiwara nobility. Who ruled the Fujiwara family in Japan?