The three kingdoms of the Sanzan era, forerunners of a united Ryukyu