Japan was officially recognized as great power roughly 50 years after it began to modernize, thanks to: