The members of what clan gradually replaced the Fujiwaras?