The dense smog that has smothered much of China for five days may finally soon clear, forecasters and state media said Wednesday, giving relief to hundreds of millions of people breathing dangerously polluted air and struggling under the government’s emergency measures.