Who beat the Chinese in the First Sino-Japanese War