China’s devaluation is an effort to stimulate an economy that is growing less rapidly than its potential.